<?
$media=$model;
if($model->id==0){
		$hidden['category_id']=$this->input->get('parent_id');
		$category_id=$this->input->get('parent_id');
}else{
	$category_id=$media->category_id;
}
$hidden['formtype']='multiple';
$catlist=ORM::factory('category')->get_pulldown_list();
?>
<div class='contentheader'>Ein neues Mediaelement erstellen</div>

<?
echo form::open_multipart(NULL, array(), $hidden );
echo form::hidden('id', $media->id);
echo form::open_fieldset();


echo myform::upload('file[]', 'Upload File', 'multi');
/*
echo '<p>';
echo form::label('file[]', 'Upload File');
echo form::upload(array('name' => 'file[]', 'class'=>'multi'));
echo '</p>';
*/
echo form::close_fieldset();
echo myform::submit_small();
echo form::close();
?>